package com.mud.mudcommune.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.mud.mudcommune.R;
import com.mud.mudcommune.utils.ListActivity;
import com.mud.mudcommune.utils.LogUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

public class FindPasswordStepOneActivity extends AppCompatActivity implements View.OnClickListener {
    @BindView(R.id.find_step)
    TextView findStep;
    @BindView(R.id.find_next)
    TextView findNext;
    @BindView(R.id.find_back)
    ImageView findBack;
    private Unbinder unbinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.find_psd01);
        ListActivity.putActivity(this);
        unbinder = ButterKnife.bind(this);
        findStep.setText("找回密码(1/3)");
        findBack.setOnClickListener(this);
        findNext.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.find_next:
                LogUtils.i("FindPassword01Activity:", "------下一步");
                Intent intent = new Intent(this, FindPasswordStepTwoActivity.class);
                startActivity(intent);
                break;
            case R.id.find_back:
                finish();
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }
}
